#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
@Project ：图灵学习 
@File    ：13.字典类型.py
@IDE     ：PyCharm 
@Author  ：ChenLiGao
@Date    ：2024-09-27 10:08
'''
""" 字典数据类型的结构"""
# {key1: value1, key2: value2, key3: value3}
stu_info = {
    "name": "安娜",
    "gender": "女",
    "age": 20
}

""" 根据输入 key 获取对应的value"""
print(stu_info["name"])
print(stu_info["gender"])
print(stu_info["age"])

print("*" * 30)
for temp in stu_info:
    print(temp)
    print(stu_info[temp])

print("*" * 30)
for temp in stu_info.values():
    print(temp)